package com.lawyer.repository;


import java.util.List;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

import com.lawyer.entity.SelectConfig;


@RepositoryRestResource(exported = false)
public interface SelectConfigRepository extends PagingAndSortingRepository<SelectConfig, Integer> , JpaSpecificationExecutor<SelectConfig> {
	
	@Override
	public List<SelectConfig> findAll();
	
	 List<SelectConfig> findByCodeOrderByOrderIndexAsc(String code);
	
}
